@echo off
echo ===================================
echo  Starting Frontend Production Build
echo ===================================

echo.
echo Building frontend application...
cd frontend
call npm run build
if %errorlevel% neq 0 (
    echo.
    echo ERROR: Failed to build frontend.
    exit /b %errorlevel%
)
echo Frontend build completed successfully.
echo.
echo The production-ready files are located in the 'frontend/dist' directory.
echo You can deploy this 'dist' directory to your web server.
echo.
pause